<?php
!defined('M_P') && exit('Forbidden');

InitGP(array('hid', 'page'), 'GP', 2);
$page < 1 && $page = 1;

$houseService = house::loadClass('house');/* @var $houseService PW_House */
$houseService->setHid($hid);

if (!$houseService->init(true)) {
	Showmsg('该楼盘不存在!');
}
$houseService->setNav();
$houseService->setBanner();
$houseinfo =& $houseService->info;

$perpage = 20;
$total  = $houseService->getFeedNum();
$pages  = numofpage($total, $page, ceil($total/$perpage), $houseBaseUrl."q=feed&hid=$hid&");
$feeddb = $houseService->getFeed(($page - 1) * $perpage, $perpage);

$pageCache = getPageCache('other', '');
$pageCache->init();

require_once(M_P.'require/header.php');
require_once PrintEot('feed');
footer();	
?>